Optimal. Leaf size=734 \[ -\frac{C \sqrt{g+h x} (b e-a f) \sqrt{b g-a h} \sqrt{\frac{(c+d x) (b e-a f)}{(a+b x) (d e-c f)}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{e+f x} \sqrt{b g-a h}}{\sqrt{a+b x} \sqrt{f g-e h}}\right ),-\frac{(b c-a d) (f g-e h)}{(b g-a h) (d e-c f)}\right )}{f h \sqrt{c+d x} \sqrt{f g-e h} \sqrt{-\frac{(g+h x) (b e-a f)}{(a+b x) (f g-e h)}}}-\frac{(a+b x) \sqrt{c h-d g} \sqrt{\frac{(c+d x) (b g-a h)}{(a+b x) (d g-c h)}} \sqrt{\frac{(e+f x) (b g-a h)}{(a+b x) (f g-e h)}} (a C d f h-b (2 B d f h-C (c f h+d e h+d f g))) \Pi \left (-\frac{b (d g-c h)}{(b c-a d) h};\sin ^{-1}\left (\frac{\sqrt{b c-a d} \sqrt{g+h x}}{\sqrt{c h-d g} \sqrt{a+b x}}\right )|\frac{(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{d f h^2 \sqrt{c+d x} \sqrt{e+f x} \sqrt{b c-a d}}+\frac{b C \sqrt{a+b x} \sqrt{e+f x} \sqrt{g+h x}}{f h \sqrt{c+d x}}-\frac{b C \sqrt{a+b x} \sqrt{d g-c h} \sqrt{f g-e h} \sqrt{-\frac{(g+h x) (d e-c f)}{(c+d x) (f g-e h)}} E\left (\sin ^{-1}\left (\frac{\sqrt{d g-c h} \sqrt{e+f x}}{\sqrt{f g-e h} \sqrt{c+d x}}\right )|\frac{(b c-a d) (f g-e h)}{(b e-a f) (d g-c h)}\right )}{d f h \sqrt{g+h x} \sqrt{\frac{(a+b x) (d e-c f)}{(c+d x) (b e-a f)}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.711542, antiderivative size = 732, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 62, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.129, Rules used = {1586, 1596, 170, 419, 176, 424, 165, 537} \[ \frac{(a+b x) \sqrt{c h-d g} \sqrt{\frac{(c+d x) (b g-a h)}{(a+b x) (d g-c h)}} \sqrt{\frac{(e+f x) (b g-a h)}{(a+b x) (f g-e h)}} (-a C d f h+2 b B d f h-b C (c f h+d e h+d f g)) \Pi \left (-\frac{b (d g-c h)}{(b c-a d) h};\sin ^{-1}\left (\frac{\sqrt{b c-a d} \sqrt{g+h x}}{\sqrt{c h-d g} \sqrt{a+b x}}\right )|\frac{(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{d f h^2 \sqrt{c+d x} \sqrt{e+f x} \sqrt{b c-a d}}+\frac{b C \sqrt{a+b x} \sqrt{e+f x} \sqrt{g+h x}}{f h \sqrt{c+d x}}-\frac{C \sqrt{g+h x} (b e-a f) \sqrt{b g-a h} \sqrt{\frac{(c+d x) (b e-a f)}{(a+b x) (d e-c f)}} F\left (\sin ^{-1}\left (\frac{\sqrt{b g-a h} \sqrt{e+f x}}{\sqrt{f g-e h} \sqrt{a+b x}}\right )|-\frac{(b c-a d) (f g-e h)}{(d e-c f) (b g-a h)}\right )}{f h \sqrt{c+d x} \sqrt{f g-e h} \sqrt{-\frac{(g+h x) (b e-a f)}{(a+b x) (f g-e h)}}}-\frac{b C \sqrt{a+b x} \sqrt{d g-c h} \sqrt{f g-e h} \sqrt{-\frac{(g+h x) (d e-c f)}{(c+d x) (f g-e h)}} E\left (\sin ^{-1}\left (\frac{\sqrt{d g-c h} \sqrt{e+f x}}{\sqrt{f g-e h} \sqrt{c+d x}}\right )|\frac{(b c-a d) (f g-e h)}{(b e-a f) (d g-c h)}\right )}{d f h \sqrt{g+h x} \sqrt{\frac{(a+b x) (d e-c f)}{(c+d x) (b e-a f)}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1586
Rule 1596
Rule 170
Rule 419
Rule 176
Rule 424
Rule 165
Rule 537
Rubi steps
\begin{align*} \int \frac{a b B-a^2 C+b^2 B x+b^2 C x^2}{\sqrt{a+b x} \sqrt{c+d x} \sqrt{e+f x} \sqrt{g+h x}} \, dx &=\int \frac{\sqrt{a+b x} (b B-a C+b C x)}{\sqrt{c+d x} \sqrt{e+f x} \sqrt{g+h x}} \, dx\\ &=\frac{b C \sqrt{a+b x} \sqrt{e+f x} \sqrt{g+h x}}{f h \sqrt{c+d x}}-\frac{(C (b e-a f) (b g-a h)) \int \frac{1}{\sqrt{a+b x} \sqrt{c+d x} \sqrt{e+f x} \sqrt{g+h x}} \, dx}{2 f h}+\frac{(b C (d e-c f) (d g-c h)) \int \frac{\sqrt{a+b x}}{(c+d x)^{3/2} \sqrt{e+f x} \sqrt{g+h x}} \, dx}{2 d f h}+\frac{(2 b (b B-a C) d f h+b C (a d f h-b (d f g+d e h+c f h))) \int \frac{\sqrt{a+b x}}{\sqrt{c+d x} \sqrt{e+f x} \sqrt{g+h x}} \, dx}{2 b d f h}\\ &=\frac{b C \sqrt{a+b x} \sqrt{e+f x} \sqrt{g+h x}}{f h \sqrt{c+d x}}+\frac{\left ((2 b (b B-a C) d f h+b C (a d f h-b (d f g+d e h+c f h))) (a+b x) \sqrt{\frac{(b g-a h) (c+d x)}{(d g-c h) (a+b x)}} \sqrt{\frac{(b g-a h) (e+f x)}{(f g-e h) (a+b x)}}\right ) \operatorname{Subst}\left (\int \frac{1}{\left (h-b x^2\right ) \sqrt{1+\frac{(b c-a d) x^2}{d g-c h}} \sqrt{1+\frac{(b e-a f) x^2}{f g-e h}}} \, dx,x,\frac{\sqrt{g+h x}}{\sqrt{a+b x}}\right )}{b d f h \sqrt{c+d x} \sqrt{e+f x}}-\frac{\left (C (b e-a f) (b g-a h) \sqrt{\frac{(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt{g+h x}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{(b c-a d) x^2}{d e-c f}} \sqrt{1-\frac{(b g-a h) x^2}{f g-e h}}} \, dx,x,\frac{\sqrt{e+f x}}{\sqrt{a+b x}}\right )}{f h (f g-e h) \sqrt{c+d x} \sqrt{-\frac{(b e-a f) (g+h x)}{(f g-e h) (a+b x)}}}-\frac{\left (b C (d g-c h) \sqrt{a+b x} \sqrt{-\frac{(d e-c f) (g+h x)}{(f g-e h) (c+d x)}}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{1+\frac{(-b c+a d) x^2}{b e-a f}}}{\sqrt{1-\frac{(d g-c h) x^2}{f g-e h}}} \, dx,x,\frac{\sqrt{e+f x}}{\sqrt{c+d x}}\right )}{d f h \sqrt{\frac{(d e-c f) (a+b x)}{(b e-a f) (c+d x)}} \sqrt{g+h x}}\\ &=\frac{b C \sqrt{a+b x} \sqrt{e+f x} \sqrt{g+h x}}{f h \sqrt{c+d x}}-\frac{b C \sqrt{d g-c h} \sqrt{f g-e h} \sqrt{a+b x} \sqrt{-\frac{(d e-c f) (g+h x)}{(f g-e h) (c+d x)}} E\left (\sin ^{-1}\left (\frac{\sqrt{d g-c h} \sqrt{e+f x}}{\sqrt{f g-e h} \sqrt{c+d x}}\right )|\frac{(b c-a d) (f g-e h)}{(b e-a f) (d g-c h)}\right )}{d f h \sqrt{\frac{(d e-c f) (a+b x)}{(b e-a f) (c+d x)}} \sqrt{g+h x}}-\frac{C (b e-a f) \sqrt{b g-a h} \sqrt{\frac{(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt{g+h x} F\left (\sin ^{-1}\left (\frac{\sqrt{b g-a h} \sqrt{e+f x}}{\sqrt{f g-e h} \sqrt{a+b x}}\right )|-\frac{(b c-a d) (f g-e h)}{(d e-c f) (b g-a h)}\right )}{f h \sqrt{f g-e h} \sqrt{c+d x} \sqrt{-\frac{(b e-a f) (g+h x)}{(f g-e h) (a+b x)}}}+\frac{\sqrt{-d g+c h} (2 b B d f h-a C d f h-b C (d f g+d e h+c f h)) (a+b x) \sqrt{\frac{(b g-a h) (c+d x)}{(d g-c h) (a+b x)}} \sqrt{\frac{(b g-a h) (e+f x)}{(f g-e h) (a+b x)}} \Pi \left (-\frac{b (d g-c h)}{(b c-a d) h};\sin ^{-1}\left (\frac{\sqrt{b c-a d} \sqrt{g+h x}}{\sqrt{-d g+c h} \sqrt{a+b x}}\right )|\frac{(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{d \sqrt{b c-a d} f h^2 \sqrt{c+d x} \sqrt{e+f x}}\\ \end{align*}
Mathematica [B] time = 16.0311, size = 6667, normalized size = 9.08 \[ \text{Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.079, size = 20235, normalized size = 27.6 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{C b^{2} x^{2} + B b^{2} x - C a^{2} + B a b}{\sqrt{b x + a} \sqrt{d x + c} \sqrt{f x + e} \sqrt{h x + g}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{C b^{2} x^{2} + B b^{2} x - C a^{2} + B a b}{\sqrt{b x + a} \sqrt{d x + c} \sqrt{f x + e} \sqrt{h x + g}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]